package com.deloitte.snap.service;

import java.util.List;

import com.deloitte.snap.dao.SAPSystemMasterDAOImpl;
import com.deloitte.snap.vo.SAPSystemMasterVO;

public class SAPSystemMasterService extends AbstractService{
	/**
	 * Doc Type bean name in WEB-INF/dataAccessContext.xml
	 */
	private final String DAO_NAME = "sapSystemMasterDAO";
	/**
	 * Instance of DAO Class
	 */
	private final SAPSystemMasterDAOImpl sapSystemMasterDAO = (SAPSystemMasterDAOImpl) getDAO(DAO_NAME);
	
	/**
	 * This method used to retrieve all different categories of document available in DB 
	 * 
	 * @return - Return the collection of document categories
	 */
	public List<SAPSystemMasterVO> findAllSAPSystemMasters(){
		List<SAPSystemMasterVO> sapSystemMasters =  null;
		if(sapSystemMasterDAO != null){
			sapSystemMasters = sapSystemMasterDAO.findAll();
		}
		return sapSystemMasters;
	}
	
}
